import axioas from '@/utils/request'
import type {trandemarklistdatamodel,trandemarkmodel} from './model/index'
enum Api {
    getrademarkInfoDataapi = '/admin/product/baseTrademark',
    postrademarkInfoDataapi = '/admin/product/baseTrademark/save',
    delrademarkInfoDataapi = '/admin/product/baseTrademark/remove',
    putrademarkInfoDataapi = '/admin/product/baseTrademark/update',
}

export const reqgetrademarkInfoData = (page:number,limit:number) => axioas.get<any,trandemarklistdatamodel>(`${Api.getrademarkInfoDataapi}/${page}/${limit}`)

export const reqpostrademarkInfoData = (data:trandemarkmodel) => axioas.post(Api.postrademarkInfoDataapi,data)

export const reqdelrademarkInfoData = (id:number) => axioas.delete(`${Api.delrademarkInfoDataapi}/${id}`)

export const reqputrademarkInfoData = (data:trandemarkmodel) => axioas.put(Api.putrademarkInfoDataapi,data)